<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterChangePurchaseOrder{
		
		public function __construct() {}
		
		public function clickChangeProduct ($pkCode, $name, $unitCost)  {
			
			$command = CommandFactory :: createCommandChangeProduct ($pkCode, $name, $unitCost) ;
			
			$command -> execute();		
			return $command->getResult();
		
		}	
	}
?>